package org.mics.sitemsg.VO;

import java.io.Serializable;
import java.util.Date;

import org.mics.sitemsg.enums.SiteMsgState;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 站内信
 * @author mics
 * @date 2021-11-8
 * @version  1.0
 */
@Data
@Schema(description = "站内信信息")
public class SiteMsgVO  implements Serializable{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 5013087480734937492L;

	@Schema(description = "消息id")
	private String id;
	
	@Schema(description = "标题")
	private String title;
	
	@Schema(description = "内容")
    private String content;
	
	@Schema(description = "链接地址")
    private String jumpUrl;
    
	@Schema(description = "站内信状态")
    private SiteMsgState state=SiteMsgState.NOT_READ;
    
	@Schema(description = "接收人id")
    private String receiveUserId;
    
	@Schema(description = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate; 
}
